home *** CD-ROM | disk | FTP | other *** search
/ Champak 141 / (Vol 141) Oct 17 2011.iso / Games / gamma-bros.swf / scripts / __Packages / classes / fx / GunExplo.as < prev    next >
Encoding:
Text File  |  2011-10-17  |  655 b   |  30 lines

  1. class classes.fx.GunExplo
  2. {
  3.    var id;
  4.    var x;
  5.    var y;
  6.    var scale;
  7.    var clip;
  8.    var Name = "gunExplo";
  9.    function GunExplo(px, py, pscale, pid)
  10.    {
  11.       this.id = pid;
  12.       this.x = px;
  13.       this.y = py;
  14.       this.scale = pscale;
  15.       _root.d = _root.d + 1;
  16.       this.clip = _root.attachMovie("gunExplo","gunExplo" + this.id + "Clip",_root.d + 20000);
  17.       this.clip._x = this.x;
  18.       this.clip._y = this.y;
  19.       this.clip._xscale = this.scale;
  20.       this.clip._yscale = this.scale;
  21.    }
  22.    function main()
  23.    {
  24.       if(this.clip.end)
  25.       {
  26.          _root.removeFX("gunExplo" + this.id);
  27.       }
  28.    }
  29. }
  30.